package com.math.aistudykbr.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.math.aistudykbr.pojo.entity.MyMessage;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.List;

public interface AIService {
    void storeMessages(String messages, String type, Long userId);

    List<MyMessage> getHistoryMsg(Long userId);

    void deleteContext(Long user);

    void deleteHistoryMsg(Long user);

    String chatWithAI(Long user, String msg) throws JsonProcessingException;

    void chatWithAIFlux(SseEmitter emitter, String msg) throws JsonProcessingException;
}
